package com.learn.service;

import com.learn.mapper.MemberMapper;
import com.learn.mapper.OrderMapper;
import com.learn.mapper.UserMapper;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Description
 * Copyright © 启明星辰 版权所有
 *
 * @author chenjiquan
 * @date 2024-08-05
 */
//@Service
public class UserService {
	@Autowired
	private MemberMapper memberMapper;
	@Autowired
	private OrderMapper orderMapper;
	@Autowired
	private UserMapper userMapper;

	@Autowired
	private SqlSession sqlSession;

	public void test() {
		System.out.println(memberMapper.selectById());
		System.out.println(orderMapper.selectById());
		System.out.println(userMapper.selectById());
		System.out.println((String) sqlSession.selectOne("com.learn.mapper.UserMapper.selectById"));
	}
}
